package com.itCar.base.api.rabbitmq.consumer;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @ClassName: DirectReceiver 消费者
 * @Author: hhxx_liuzhiguo
 * @CreateTime: 2023-08-10  14:59
 */
@Component
//@RabbitListener(queues = "DirectQueue")//监听的队列名称 TestDirectQueue
public class DirectReceiverTwo {

    @RabbitHandler
    public void process(Map testMessage) {
        System.out.println("第二个DirectReceiver消费者收到消息--->: " + testMessage.toString());
    }

}
